﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace zhwy.saas.api.Entity.Sys
{
    /// <summary>
    /// 物业帐号信息表
    ///</summary>
    [SugarTable("users")]
    public class UsersEntity : TenantBaseEntity
    {


        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 备  注:帐号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "username")]
        public string Username { get; set; } = null!;

        /// <summary>
        /// 备  注:密码（md5）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "password")]
        public string Password { get; set; } = null!;

        /// <summary>
        /// 备  注:状态（0启用，1禁用，9删除）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "status")]
        public int Status { get; set; }

        /// <summary>
        /// 帐号类型（0普通帐号，1租户管理员，2平台管理员）
        /// </summary>
        [SugarColumn(ColumnName = "usertype")]
        public int UserType { get; set; }
    }

}